package cn.ylz.ylmall.product.dao.persist.repository;

import cn.ylz.ylmall.product.pojo.entity.PComment;
import cn.ylz.ylmall.product.pojo.vo.PCommentStandardVO;
import cn.ylz.ylmall.product.pojo.vo.PCommentVO;

import java.util.List;

public interface IPCommentRepository {
    List<PCommentVO> listRootCommentByProductId(Long id);

    List<PCommentVO> listByParentId(Long commentId);

    int insert(PComment comment);

    PCommentStandardVO getStandardById(Long commentId);

    void deleteById(Long commentId);

    List<Long> getLikedCommentsByUserAndProduct(Long productId, Long userId);

    void updateLikeCount(long commentId, long likeCount);

}
